<%@ page language="java" contentType="text/html"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录</title>
</head>
<body>
	<form action="<c:url value="/lottery/logon.do"/>" method="post">
		<input type="text" name="userid"/>
		</br>
        <button type="submit">登录</button>
        <button type="reset">消除</button>
     </form>
    <font color="red">
     <c:if test="${!empty user}">
     	用户名为：<c:out value="${user.username}"/>
     </c:if>
     
     <c:if test="${empty user}">
     	用户不存在!
     </c:if>
     </font>
</body>
</html>